package cn.wolfcode.ssm.util;

import cn.wolfcode.ssm.domain.User;
import org.apache.shiro.SecurityUtils;

public abstract class UserContext {

    // 获取登录对象
    public static User getSubject(){
        return (User) SecurityUtils.getSubject().getPrincipal();
    }

}
